import request from "@/utils/request";

export const userInfo = () => request.get('/api/auth/userInfo')

export const userLogin = (loginData) => request.get("/api/hotel/user/login",{
    params:{
        ...loginData
    }
})

export const listUser= (params) =>request.get('/api/hotel/user/list',{params})

export const deleteUser= (id) =>request.delete('/api/hotel/user/delete/'+id)

export const insertUser = (obj) => request.post('/api/hotel/user/register',obj)

export const updateUser = (obj) => request.put('/api/hotel/user/update',obj)